package boot.spring.service;

import javax.jms.Destination;

import boot.spring.po.Mail;

public interface Producer {
	/**
	 *
	 * @param des
	 * @param mail
	 */
	public void sendMail(Destination des, Mail mail);

	/**
	 *
	 * @param des
	 * @param mail
	 * @throws Exception
	 */
	public void send(Destination des, Mail mail) throws Exception;

	public void sendBySession(Destination des, Mail mail) throws Exception;
}
